﻿using System;
using System.Collections.Generic;
using Xamarin.Forms;

namespace JWXH.XH.pages.listview
{
    public partial class FreshPageByListview : ContentPage
    {
        public FreshPageByListview()
        {
            InitializeComponent();
            this.listview1.ItemsSource = new List<int>(1){1};
        }

        void Handle_Refreshing(object sender, System.EventArgs e)
        {
            Device.StartTimer(TimeSpan.FromSeconds(1),()=>{
                this.listview1.IsRefreshing = false;
                return false;
            });
        }

        void BtnBack_Clicked(object sender, System.EventArgs e)
        {
            this.Navigation.PopAsync(true);
        }
    }
}
